package com.htiiot.sparkpredict;

import org.apache.log4j.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer;
import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer;

/**
 * 启动类实现EmbeddedServletContainerCustomizer接口,用于修改启动端口
 * @author Administrator
 *
 */
@SpringBootApplication
public class StartPredict implements EmbeddedServletContainerCustomizer{
	private static Logger log = Logger.getLogger(StartPredict.class);

	public static void main(String[] args) {
		SpringApplication.run(StartPredict.class, args);
	}

	@Override
	public void customize(ConfigurableEmbeddedServletContainer container) {
		//修改启动端口
		container.setPort(7777);
	}

}